var t = getApp();

Component({
    properties: {
        _style: {
            type: String,
            value: ""
        },
        diyStyle: {
            type: String,
            value: ""
        },
        src: {
            type: String,
            value: ""
        },
        clothing: {
            type: String,
            value: ""
        },
        position: {
            type: Number,
            value: 1
        },
        width: {
            type: Number,
            value: 120
        },
        height: {
            type: Number,
            value: 120
        },
        diyWidth: {
            type: Number,
            value: 47.3
        },
        diyHeight: {
            type: Number,
            value: 66.9
        },
        face: {
            type: Number,
            value: 1
        }
    },
    data: {
        isShow: !1,
        diyTop: "25%",
        winWidth: t.globalData.windowWidth
    },
    lifetimes: {
        ready: function() {
            this.setData({
                diyTop: t.globalData.diySize[1 * this.data.face == 1 ? "front" : "back"][this.data.position].imgTop
            });
        }
    },
    methods: {
        handleShow: function() {
            this.setData({
                isShow: !0
            });
        },
        handleHide: function() {
            this.setData({
                isShow: !1
            });
        }
    }
});